import React, { Component } from 'react';
import { Button, Modal, Select, Form, Row, Col, Input, Radio, Table, DatePicker, notification,Divider } from 'antd';
import BaseComponent from '@/components/BaseComponent';
import { connect } from 'dva';
import request from 'umi-request';
import Index from '@/pages/Company/warehouse/list';
import style from './index.css';
@connect(({ user, }) => ({
  // data: risk.riskData,
  currentUser: user.currentUser,
}))
@Form.create()
class PhysicalExamination extends BaseComponent {
  constructor(props) {
    super(props);
    this.state = {
      visible: false,
      form: {},
      yesOrNo: [
        { label: '无', value: '1' },
        { label: '有', value: '2' },
      ],
      whether: [
        { label: '否', value: '1' },
        { label: '是', value: '2' },
      ],
      testResult: [
        { label: '阴', value: '1' },
        { label: '阳', value: '2' },
      ],
    };
  }

  showModal = () => {
    // 体检表详情
    request("/api/cdcerservice/v1/cerSysteminitImportInfo/getPhysicalExaminationByInfoId?infoId=" + this.props.record.id, {
      method: "GET",
    }).then((resp) => {
      if (resp.success && resp.data.content !== undefined) {
        this.setState({
          visible: true,
          form: JSON.parse(resp.data.content),
        });
      } else {
        this.setState({
          visible: true,
          form: {
            name: this.props.record.name,
            screeningId: this.props.record.screening_id,
            phone: this.props.record.phone,
          },
        });
      }
    })
  };

  handleOk = () => {
    request("/api/cdcerservice/v1/cerSysteminitImportInfo/editPhysicalExaminationInfo", {
      method: "POST",
      requestType: 'form',
      data: {
        infoId: this.props.record.id,
        name: this.state.form.name,
        idCard: this.state.form.idCard,
        screeningId: this.props.record.screening_id,
        phone: this.state.form.phone,
        content: JSON.stringify(this.state.form),
      }
    }).then((resp) => {
      notification.open({
        message: resp.message
      })
      this.setState({
        visible: false,
      });
      this.props.getDataByPage({});
    })
  };

  handleCancel = () => {
    this.setState({
      visible: false,
    });
  };

  handleChange = e => {
    const { name, value } = e.target;
    this.setState(params => ({
      form: {
        ...params.form,
        [name]: value,
      },
    }));
  };

  aspirinDateChange = (date, dateString) => {
    this.setState((params) => ({
      form: {
        ...params.form,
        aspirinDate: dateString
      }
    }));
  }

  gastricAntacidsDateChange = (date, dateString) => {
    this.setState((params) => ({
      form: {
        ...params.form,
        aspirinDate: dateString
      }
    }));
  }

  render() {
    const { visible } = this.state;

    const { record } = this.props;


    const { getFieldDecorator } = this.props.form


    const formItemLayout = {
      labelCol: {
        xs: { span: 24 },
        sm: { span: 8 },
      },
      wrapperCol: {
        xs: { span: 24 },
        sm: { span: 16 },
      },
    };

    const color = record.physicalExaminationInfoId ? '#67c23a' : '#e6a23c';

    return (
      <div>
        <Button
          type="primary"
          style={{ marginLeft: '10px', background: color, borderColor: color }}
          onClick={this.showModal}
        >
          体检表
        </Button>
        <Modal
          title="临床体检表"
          visible={visible}
          onOk={this.handleOk}
          onCancel={this.handleCancel}
          width={1500}
        >
          <Form {...formItemLayout}>
            <Row   >
              <Col span={6}  >


                <Row style={{ display: "flex" }} >

                  <Col span={8}
                    className={style.formLabel}

                  >姓名</Col>
                  <Col span={16} className={style.formText}>
                    {this.state.form.name}


                  </Col>

                </Row>

              </Col>
              <Col span={6}>
                <Row style={{ display: "flex" }}>

                  <Col span={8} className={style.formLabel}>身份证</Col>
                  <Col span={16} className={style.formText}>
                    {this.state.form.idCard}


                  </Col>

                </Row>


              </Col>
              <Col span={6}>



                <Row style={{ display: "flex" }} >

                  <Col span={8} className={style.formLabel}>调查对象ID号</Col>
                  <Col span={16} className={style.formText}>
                    {this.state.form.screeningId}


                  </Col>

                </Row>
              </Col>
              <Col span={6}>

                <Row style={{ display: "flex" }} >

                  <Col span={8} className={style.formLabel}>电话</Col>
                  <Col span={16} className={style.formText}>
                    {this.state.form.phone}


                  </Col>

                </Row>

              </Col>
            </Row>

            <h3 style={{marginTop:"20px"}}>一般情况</h3>
            <Divider />
            <Row >
              <Col span={6}>

                <Row style={{ display: "flex" }} >

                  <Col span={8}
                    className={style.formLabel}

                  >身高(cm)</Col>
                  <Col span={16} className={style.formText}>
                    <Input

                      name="height"
                      placeholder="cm"
                      value={this.state.form.height}
                      onChange={this.handleChange}
                    />


                  </Col>

                </Row>
              </Col>
              <Col span={6}>
                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >体重(Kg)</Col>
                  <Col span={16} className={style.formText}>
                    <Input
                      placeholder="Kg"
                      name="weight"

                      value={this.state.form.weight}
                      onChange={this.handleChange}
                    />
                  </Col>
                </Row>
              </Col>

              <Col span={12}>
                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >血压(mmHg)</Col>
                  <Col span={16} className={style.formText}>
                    <Row style={{ display: "flex", alignItems: "center" }}>
                      <Col span={10}>
                        <Input

                          name="bloodPressure1"
                          value={this.state.form.bloodPressure1}
                          onChange={this.handleChange}
                        />
                      </Col>
                      <Col span={2} style={{ display: "flex", justifyContent: "center" }}>
                        /
                      </Col>

                      <Col span={10}>
                        <Input

                          name="bloodPressure2"
                          value={this.state.form.bloodPressure2}
                          onChange={this.handleChange}
                        />
                      </Col>
                    </Row>
                  </Col>
                </Row>
              </Col>


            </Row>

            <h3  style={{marginTop:"20px"}}>上消化道症状</h3>
            <Divider />
            <Row >
              <Col span={24}>
                <Row style={{ display: "flex" }} >
                  <Col span={2}
                    className={style.formLabel}
                  >是否有上消化道症状</Col>
                  <Col span={22} className={style.formText}>
                    <Radio.Group
                      name='upperGastrointestinalSymptoms'
                      options={this.state.yesOrNo}
                      onChange={this.handleChange}
                      value={this.state.form.upperGastrointestinalSymptoms}
                    />

                  </Col>

                </Row>

              </Col>
            </Row>
            <Row >
              <Col span={6}>
                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >上腹胀</Col>
                  <Col span={16} className={style.formText}>
                    <Radio.Group
                      name="upperAbdominalDistention"
                      options={this.state.yesOrNo}
                      onChange={this.handleChange}
                      value={this.state.form.upperAbdominalDistention}
                      disabled={this.state.form.upperGastrointestinalSymptoms !== '2'}
                    />

                  </Col>
                </Row>
              </Col>
              <Col span={6}>

                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >持续时间(天)</Col>
                  <Col span={16} className={style.formText}>
                    <Input
                      name="upperAbdominalDistentionDays"
                      placeholder="请输入持续时间/天"
                      value={this.state.form.upperAbdominalDistentionDays}
                      onChange={this.handleChange}
                      disabled={this.state.form.upperAbdominalDistention !== '2'}
                    />

                  </Col>
                </Row>
              </Col>

              <Col span={6}>
                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >烧心</Col>
                  <Col span={16} className={style.formText}>
                    <Radio.Group
                      name="heartburn"
                      options={this.state.yesOrNo}
                      onChange={this.handleChange}
                      value={this.state.form.heartburn}
                      disabled={this.state.form.upperGastrointestinalSymptoms !== '2'}
                    />

                  </Col>
                </Row>
              </Col>

              <Col span={6}>


                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >持续时间(天)</Col>
                  <Col span={16} className={style.formText}>
                    <Input name="heartburnDays"
                      placeholder="请输入持续时间/天"
                      value={this.state.form.heartburnDays}
                      onChange={this.handleChange}
                      disabled={this.state.form.heartburn !== '2'}
                    />

                  </Col>
                </Row>
              </Col>

            </Row>
            <Row >
              <Col span={6}>
                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >反酸</Col>
                  <Col span={16} className={style.formText}>
                    <Radio.Group name="acidReflux"
                      options={this.state.yesOrNo}
                      onChange={this.handleChange}
                      value={this.state.form.acidReflux}
                      disabled={this.state.form.upperGastrointestinalSymptoms !== '2'}
                    />

                  </Col>
                </Row>
              </Col>

              <Col span={6}>


                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >持续时间(天)</Col>
                  <Col span={16} className={style.formText}>
                    <Input
                      name="acidRefluxDays"
                      placeholder="请输入持续时间/天"
                      value={this.state.form.acidRefluxDays}
                      onChange={this.handleChange}
                      disabled={this.state.form.acidReflux !== '2'}
                    />

                  </Col>
                </Row>
              </Col>

              <Col span={6}>
                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >恶心</Col>
                  <Col span={16} className={style.formText}>
                    <Radio.Group
                      name="disgusting"
                      options={this.state.yesOrNo}
                      onChange={this.handleChange}
                      value={this.state.form.disgusting}
                      disabled={this.state.form.upperGastrointestinalSymptoms !== '2'}
                    />

                  </Col>
                </Row>
              </Col>

              <Col span={6}>

                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >持续时间(天)</Col>
                  <Col span={16} className={style.formText}>
                    <Input
                      name="disgustingDays"
                      placeholder="请输入持续时间/天"
                      value={this.state.form.disgustingDays}
                      onChange={this.handleChange}
                      disabled={this.state.form.disgusting !== '2'}
                    />

                  </Col>
                </Row>
              </Col>

            </Row>
            <Row >


              <Col span={6}>

                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >打嗝</Col>
                  <Col span={16} className={style.formText}>
                    <Radio.Group
                      name="burp"
                      options={this.state.yesOrNo}
                      onChange={this.handleChange}
                      value={this.state.form.burp}
                      disabled={this.state.form.upperGastrointestinalSymptoms !== '2'}
                    />

                  </Col>
                </Row>
              </Col>

              <Col span={6}>
                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >持续时间(天)</Col>
                  <Col span={16} className={style.formText}>
                    <Input
                      name="burpDays"
                      placeholder="请输入持续时间/天"
                      value={this.state.form.burpDays}
                      onChange={this.handleChange}
                      disabled={this.state.form.burp !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

              <Col span={6}>

                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >嗳气</Col>
                  <Col span={16} className={style.formText}>
                    <Radio.Group
                      name="belch"
                      options={this.state.yesOrNo}
                      onChange={this.handleChange}
                      value={this.state.form.belch}
                      disabled={this.state.form.upperGastrointestinalSymptoms !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

              <Col span={6}>
                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >持续时间(天)</Col>
                  <Col span={16} className={style.formText}>
                    <Input
                      name="belchDays"
                      placeholder="请输入持续时间/天"
                      value={this.state.form.belchDays}
                      onChange={this.handleChange}
                      disabled={this.state.form.belch !== '2'}
                    />
                  </Col>
                </Row>
              </Col>
            </Row>
            <Row >
              <Col span={6}>
                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >食欲不振</Col>
                  <Col span={16} className={style.formText}>
                    <Radio.Group
                      name="lossOfAppetite"
                      options={this.state.yesOrNo}
                      onChange={this.handleChange}
                      value={this.state.form.lossOfAppetite}
                      disabled={this.state.form.upperGastrointestinalSymptoms !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

              <Col span={6}>
                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >持续时间(天)</Col>
                  <Col span={16} className={style.formText}>
                    <Input
                      name="lossOfAppetiteDays"
                      placeholder="请输入持续时间/天"
                      value={this.state.form.lossOfAppetiteDays}
                      onChange={this.handleChange}
                      disabled={this.state.form.lossOfAppetite !== '2'}
                    />
                  </Col>
                </Row>
              </Col>
              <Col span={6}>
                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >胃疼</Col>
                  <Col span={16} className={style.formText}>
                    <Radio.Group
                      name="stomachPain"
                      options={this.state.yesOrNo}
                      onChange={this.handleChange}
                      value={this.state.form.stomachPain}
                      disabled={this.state.form.upperGastrointestinalSymptoms !== '2'}
                    />
                  </Col>
                </Row>
              </Col>
              <Col span={6}>
                <Row style={{ display: "flex" }} >
                  <Col span={8}
                    className={style.formLabel}
                  >持续时间(天)</Col>
                  <Col span={16} className={style.formText}>
                    <Input
                      name="stomachPainDays"
                      placeholder="请输入持续时间/天"
                      value={this.state.form.stomachPainDays}
                      onChange={this.handleChange}
                      disabled={this.state.form.stomachPain !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

            </Row>
            <h3  style={{marginTop:"20px"}}>胃镜或钡餐造影</h3>
            <Divider />
            <Row>
              <Col span={24}>
                <Row style={{ display: "flex" }} >
                  <Col span={2}
                    className={style.formLabel}
                  >以前是否做过胃镜或钡餐造影</Col>
                  <Col span={22} className={style.formText}>
                    <Radio.Group
                      name="gastroscopyOrBariumSwallow"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.gastroscopyOrBariumSwallow}
                    />
                  </Col>
                </Row>
              </Col>


            </Row>

            <Row >
              <Col span={12}>

                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >胃镜</Col>
                  <Col span={20} className={style.formText}>
                    <Radio.Group
                      name="gastroscope"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.gastroscope}
                      disabled={this.state.form.gastroscopyOrBariumSwallow !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

              <Col span={12}>

                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >诊断结果</Col>
                  <Col span={20} className={style.formText}>
                    <Input
                      name="gastroscopeResult"
                      placeholder="请输入诊断结果"
                      value={this.state.form.gastroscopeResult}
                      onChange={this.handleChange}
                      disabled={this.state.form.gastroscope !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

            </Row>
            <Row >
              <Col span={12}>
                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >钡餐造影</Col>
                  <Col span={20} className={style.formText}>
                    <Radio.Group
                      name="bariumSwallow"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.bariumSwallow}
                      disabled={this.state.form.gastroscopyOrBariumSwallow !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

              <Col span={12}>
                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >诊断结果</Col>
                  <Col span={20} className={style.formText}>
                    <Input
                      name="bariumSwallowResult"
                      placeholder="请输入诊断结果"
                      value={this.state.form.bariumSwallowResult}
                      onChange={this.handleChange}
                      disabled={this.state.form.bariumSwallow !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

            </Row>

            <Row >
              <Col span={24}>


                <Row style={{ display: "flex" }} >
                  <Col span={2}
                    className={style.formLabel}
                  >以前是否有过容易出血而不容易止血的情况</Col>
                  <Col span={22} className={style.formText}>
                    <Radio.Group
                      name="haemorrhage"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.haemorrhage}
                    />
                  </Col>
                </Row>
              </Col>
            </Row>
            <h3  style={{marginTop:"20px"}}>是否服用过以下药物</h3>
            <Divider />
            <Row >
              <Col span={24}>

                <Row style={{ display: "flex" }} >
                  <Col span={2}
                    className={style.formLabel}
                  >是否服用过以下药物</Col>
                  <Col span={22} className={style.formText}>
                    <Radio.Group
                      name="medications"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.medications}
                    />
                  </Col>
                </Row>
              </Col>
            </Row>

            <Row >
              <Col span={8}>


                <Row style={{ display: "flex" }} >
                  <Col span={6}
                    className={style.formLabel}
                  >阿司匹林等</Col>
                  <Col span={18} className={style.formText}>
                    <Radio.Group
                      name="aspirin"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.aspirin}
                      disabled={this.state.form.medications !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

              <Col span={8}>
                <Row style={{ display: "flex" }} >
                  <Col span={6}
                    className={style.formLabel}
                  >服用日期</Col>
                  <Col span={18} className={style.formText}>
                    <DatePicker
                      placeholder="服用日期"
                      onChange={this.aspirinDateChange}
                      disabled={this.state.form.aspirin !== '2'}
                    />
                  </Col>
                </Row>
              </Col>
              <Col span={8}>



                <Row style={{ display: "flex" }} >
                  <Col span={6}
                    className={style.formLabel}
                  >持续时间(天)</Col>
                  <Col span={18} className={style.formText}>
                    <Input
                      name="aspirinDays"
                      placeholder="持续时间/天"
                      value={this.state.form.aspirinDays}
                      onChange={this.handleChange}
                      disabled={this.state.form.aspirin !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

            </Row>
            <Row>
              <Col span={8}>
                <Row style={{ display: "flex" }} >
                  <Col span={6}
                    className={style.formLabel}
                  >胃抑酸药</Col>
                  <Col span={18} className={style.formText}>
                    <Radio.Group
                      name="gastricAntacids"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.gastricAntacids}
                      disabled={this.state.form.medications !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

              <Col span={8}>

                <Row style={{ display: "flex" }} >
                  <Col span={6}
                    className={style.formLabel}
                  >服用日期</Col>
                  <Col span={18} className={style.formText}>
                    <DatePicker
                      name="gastricAntacidsDate"
                      placeholder="服用日期"
                      onChange={this.gastricAntacidsDateChange}
                      disabled={this.state.form.gastricAntacids !== '2'}
                    />
                  </Col>
                </Row>
              </Col>
              <Col span={8}>

                <Row style={{ display: "flex" }} >
                  <Col span={6}
                    className={style.formLabel}
                  >持续时间(天)</Col>
                  <Col span={18} className={style.formText}>
                    <Input
                      name="gastricAntacidsDays"
                      placeholder="持续时间/天"
                      value={this.state.form.gastricAntacidsDays}
                      onChange={this.handleChange}
                      disabled={this.state.form.gastricAntacids !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

            </Row>
            <h3  style={{marginTop:"20px"}}>血液感染检查</h3>
            <Divider/>
            <Row >
              <Col span={24}>
                <Row style={{ display: "flex" }} >
                  <Col span={2}
                    className={style.formLabel}
                  >是否检查过血液感染四项检查</Col>
                  <Col span={22} className={style.formText}>
                    <Radio.Group
                      name="fourTestsForBloodInfections"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.fourTestsForBloodInfections}
                    />
                  </Col>
                </Row>

              </Col>
            </Row>
            <Row >
              <Col span={12}>
                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >乙肝</Col>
                  <Col span={20} className={style.formText}>
                    <Radio.Group
                      name="hepatitisB"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.hepatitisB}
                      disabled={this.state.form.fourTestsForBloodInfections !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

              <Col span={12}>

                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >检测结果</Col>
                  <Col span={20} className={style.formText}>
                    <Radio.Group
                      name="hepatitisBTestResult"
                      options={this.state.testResult}
                      onChange={this.handleChange}
                      value={this.state.form.hepatitisBTestResult}
                      disabled={this.state.form.hepatitisB !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

            </Row>
            <Row >
              <Col span={12}>

                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >丙肝</Col>
                  <Col span={20} className={style.formText}>
                    <Radio.Group
                      name="hepatitisC"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.hepatitisC}
                      disabled={this.state.form.fourTestsForBloodInfections !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

              <Col span={12}>
                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >检测结果</Col>
                  <Col span={20} className={style.formText}>
                    <Radio.Group
                      name="hepatitisC"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.hepatitisC}
                      disabled={this.state.form.fourTestsForBloodInfections !== '2'}
                    />
                  </Col>
                </Row>

              </Col>

            </Row>
            <Row >
              <Col span={12}>

                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >艾滋病</Col>
                  <Col span={20} className={style.formText}>
                    <Radio.Group
                      name="aids"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.aids}
                      disabled={this.state.form.fourTestsForBloodInfections !== '2'}
                    />
                  </Col>
                </Row>

              </Col>
              <Col span={12}>
                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >检测结果</Col>
                  <Col span={20} className={style.formText}>
                    <Radio.Group
                      name="aidsTestResult"
                      options={this.state.testResult}
                      onChange={this.handleChange}
                      value={this.state.form.aidsTestResult}
                      disabled={this.state.form.aids !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

            </Row>
            <Row >
              <Col span={12}>
                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >梅毒</Col>
                  <Col span={20} className={style.formText}>
                    <Radio.Group
                      name="syphilis"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.syphilis}
                      disabled={this.state.form.fourTestsForBloodInfections !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

              <Col span={12}>
                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >检测结果</Col>
                  <Col span={20} className={style.formText}>
                    <Radio.Group
                      name="syphilisTestResult"
                      options={this.state.testResult}
                      onChange={this.handleChange}
                      value={this.state.form.syphilisTestResult}
                      disabled={this.state.form.syphilis !== '2'}
                    />
                  </Col>
                </Row>
              </Col>

            </Row>
            <h3  style={{marginTop:"20px"}}>其他检查</h3>
            <Divider />
            <Row >
              <Col span={24}>

                <Row style={{ display: "flex" }} >
                  <Col span={2}
                    className={style.formLabel}
                  >以下检查是否正常</Col>
                  <Col span={22} className={style.formText}>
                    <Radio.Group
                      name="theExaminationIsNormal"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.theExaminationIsNormal}
                    />
                  </Col>
                </Row>

              </Col>
            </Row>
            <Row >
              <Col span={12}>


                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >心脏</Col>
                  <Col span={20} className={style.formText}>
                    <Radio.Group
                      name="heart"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.heart}
                    />
                  </Col>
                </Row>
              </Col>
              <Col span={12}>
                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >说明</Col>
                  <Col span={20} className={style.formText}>
                    <Input
                      name="heartShows"
                      placeholder="请输入说明"
                      value={this.state.form.heartShows}
                      onChange={this.handleChange}
                    />
                  </Col>
                </Row>
              </Col>
            </Row>
            <Row>
              <Col span={12}>


                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >肝</Col>
                  <Col span={20} className={style.formText}>
                    <Radio.Group
                      name="liver"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.liver}
                    />
                  </Col>
                </Row>
              </Col>
              <Col span={12}>

                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >说明</Col>
                  <Col span={20} className={style.formText}>
                    <Input
                      name="liverShows"
                      placeholder="请输入说明"
                      value={this.state.form.liverShows}
                      onChange={this.handleChange}
                    />
                  </Col>
                </Row>
              </Col>
            </Row>

            <Row >
              <Col span={12}>
                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >肺</Col>
                  <Col span={20} className={style.formText}>
                    <Radio.Group
                      name="lungs"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.lungs}
                    />
                  </Col>
                </Row>
              </Col>
              <Col span={12}>
                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >说明</Col>
                  <Col span={20} className={style.formText}>
                    <Input
                      name="lungsShows"
                      placeholder="请输入说明"
                      value={this.state.form.lungsShows}
                      onChange={this.handleChange}
                    />
                  </Col>
                </Row>
              </Col>
            </Row>
            <Row>
              <Col span={12}>
                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >肾功能</Col>
                  <Col span={20} className={style.formText}>
                    <Radio.Group
                      name="kidney"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.kidney}
                    />
                  </Col>
                </Row>
              </Col>
              <Col span={12}>
                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >说明</Col>
                  <Col span={20} className={style.formText}>
                    <Input
                      name="kidneyShows"
                      placeholder="请输入说明"
                      value={this.state.form.kidneyShows}
                      onChange={this.handleChange}
                    />
                  </Col>
                </Row>
              </Col>
            </Row>

            <Row >
              <Col span={12}>
                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >巩膜</Col>
                  <Col span={20} className={style.formText}>
                    <Radio.Group
                      name="sclera"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.sclera}
                    />
                  </Col>
                </Row>

              </Col>
              <Col span={12}>
                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >说明</Col>
                  <Col span={20} className={style.formText}>
                    <Input
                      name="scleraShows"
                      placeholder="请输入说明"
                      value={this.state.form.scleraShows}
                      onChange={this.handleChange}
                    />
                  </Col>
                </Row>
              </Col>
            </Row>

            <Row >
              <Col span={12}>
                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >是否符合胃镜检查条件</Col>
                  <Col span={20} className={style.formText}>
                    <Radio.Group
                      name="gastroscopy"
                      options={this.state.whether}
                      onChange={this.handleChange}
                      value={this.state.form.gastroscopy}
                    />
                  </Col>
                </Row>
              </Col>
              <Col span={12}>
                <Row style={{ display: "flex" }} >
                  <Col span={4}
                    className={style.formLabel}
                  >体检医生</Col>
                  <Col span={20} className={style.formText}>
                    <Input
                      name="medicalExaminer"
                      placeholder="请输入体检医生"
                      value={this.state.form.medicalExaminer}
                      onChange={this.handleChange}
                    />
                  </Col>
                </Row>
              </Col>
            </Row>
          </Form>
        </Modal >
      </div >
    );
  }
}



export default PhysicalExamination;
